import { Component, OnInit } from '@angular/core';
import { DELETE, hasModifierKey } from "@angular/cdk/keycodes";
@Component({
  selector: 'app-key-code',
  templateUrl: './key-code.component.html',
  styleUrls: ['./key-code.component.scss']
})
export class KeyCodeComponent implements OnInit {

  constructor() { }

  ngOnInit(): void {
  }


  keyDown(ev) {
    console.log(ev.keyCode);
    console.log(hasModifierKey(ev, 'ctrlKey'));
    switch(ev.keyCode) {
      case DELETE:
        console.log('delete', DELETE)
        return;
        
    }
  }

}
